﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sharp.Portal
{
    /// <summary>
    /// 模板列
    /// </summary>
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
    public class TemplateColumnAttribute : ColumnAttribute
    {
        /// <summary>
        /// 模板列
        /// </summary>
        public TemplateColumnAttribute()
        {
        }
        /// <summary>
        /// 模板列
        /// </summary>
        /// <param name="column"></param>
        public TemplateColumnAttribute(ColumnAttribute column) : base()
        {
            this.Text = column.Text;
            this.Width = column.Width;
        }
        /// <summary>
        /// 模板字符串
        /// </summary>
        [DefaultValue(null)]
        public string TemplateString { get; set; }
    }
}